/* 
 * File:   Sphere.h
 * Author: gilvolpe
 *
 * Created on May 28, 2013, 4:18 PM
 */

#ifndef SPHERE_H
#define	SPHERE_H

#include "Objects.h"
#include "Loader3DS.h"
#include "Material.h"

class Planet : public Objects {
public:

    Planet(GALATICS_ELEMENTS elem, Point3D point, GLfloat update);
    virtual ~Planet();

    void specificDraw();
    void specificUpdate();

    void setRadius(GLfloat radius);
    GLfloat getRadius();

private:

    void calcPosition();
    void updateVersor();


    Point3D versor;
    GLfloat radiusOfSphere;

    GLfloat angleOfRotation;
    GLfloat angleOfRotationUpdate;

    GLfloat radiusOfRotation;

    obj_type planet;
    GLUquadric *qobj;
};

#endif	/* SPHERE_H */

